using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

using Prodma.DataAccess.Models;
using System.Web.Security;

namespace Prodma.Panel.Controllers
{
    [Authorize]
    public class RaporController : Controller
    {

        public ActionResult Index()
        {
            if (System.Web.HttpContext.Current.Session["loginUser"] != null)
            {
                LoginUser loginUser = (LoginUser)System.Web.HttpContext.Current.Session["loginUser"];
                ViewData["userName"] = loginUser.FullName;
            }
            else
            {
                FormsAuthentication.SignOut();

                return RedirectToAction("logon", "account");
            }
            
            return View();
        }

    }
}
